<?php
	require_once './source/class/core.class.php';
	$core = &l3z_core::instance();
	$core->init();
	
	$from_id = $_G['uid'];
	
	$to_id = intval($_GET['to_id']);
	
	$ship = array();
	$ship['from_id'] = $from_id;
	$ship['to_id'] = $to_id;
	
	DB::insert('relations', $ship);
	
	header('Location:index.php');
?>